@import 'index';

.timeline-wrap{
  padding-left: 20px;
  padding-bottom: 2px;
}

.timeline{
  position: relative;
  padding-bottom: 20px;

  i{
  font-style: normal;
  }
}

// .timeline::before {
//   content: '';
//   position: absolute;
//   top: 0;
//   left: -10px;
//   height: 100%;
//   border-left: 1px dashed #ccc;
// }

.timeline-block {
  position: relative;
  padding: 1em 0 1em 2em ;
  //width: 95%;
  width: 80%;

  .line {
    height: 100%;
    width: 1px;
    border-left: dashed 2px #bdb5b5;
    position: absolute;
    left: 52px;
    top: 0;
  }
}

.date-block{
  margin-left: -25px;
  padding-top: 10px;
}

.date-content{
  position: relative;
  width: 78px;
  font-weight: bolder;
  margin: 10px auto 0;
  border-radius: 10px;
  padding: 2px;
  line-height: 12px;
  color: white;
  font-size: 12px;
  text-align: center;
  background-color: #CCCCCC;

}

.date-mark{
  position: absolute;
  top: 15px;
  left: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 4;
  background-color: #39ADFF;
}

.left {
  .timeline-content {
    // margin-left: 62px;
    margin-left: 44px;
  }

  &.timeline-block {
    // width: 90%;
  }
}

.right {
  // .timeline-content {
  //   margin-left: 8px;
  // }
}

.timeline-title {
  margin-left: 46px;
}

.timeline-content {
  position: relative;
  margin-left: 37px;

  .timeline-content-body {
    background: white;
    border-radius: 0.5em;
    // border: 1px solid #e0e0e0;
    margin-top: 6px;
    position: relative;
     width: 90%;
    max-width: 430px;
    padding:4px 6px 5px;

    .timeline-content-time {
      position: absolute;
      right: 5px;
      top: 5px
    }
  }

  p{
    // color: #666666;
    font-size: 13px;
  }

  .round {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #2ba7e2;
    position: absolute;
    top: 21px;
    left: -33px;
  }

  .line {
    height: 100%;
    width: 1px;
    border-left: dashed 2px grey;
    position: absolute;
    left: -26px;
    top: 0;
  }
}

.left{
  .timeline-img{
    top: 15px;
    left: -10px;
  }
}

.right{
  .timeline-img{
    top: 15px;
    right: -52px;
  }
}

.timeline-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  z-index: 4;
  position: absolute;

  img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }
}

.timeline-content{
  .mark{
    float: left;
    font-size: 13px;
    font-weight: normal;
    border-radius: 4px;
  }
}

.date-ico{
  color:#bdbdbd;
  font-size: 12px;
  float: right;
  right: 0;
  line-height: 20px;
}

.timeline-content{
  h2{
    overflow: hidden;
    line-height: 12px;
    font-size: 12px;
    width: 90%;
    max-width: 430px;
    white-space: nowrap;

    i {
      line-height: 12px;
      font-size: 12px;
      float: right;
    }
  }
}

.timeline-content-body {
  box-shadow: 1px 1px 1px #eae7e7;
}

.left{
  &.timeline-block {
    float: left;
  }

  h2 {
    float: left;
  }

  .timeline-content {
    .timeline-content-body {
      margin-top: 5px;
      float: left;
      // border-top-left-radius: 0;
    }
  }

  .timeline-content:not(.no-arrow)::before {
    content: '';
    position: absolute;
    // background-color: white;
    // right: 101%;
    top: 31px;
    left: -2px;
    z-index: 10;
    background-repeat: no-repeat;
    background-image:  url(@leftarraowurl);
    width: 33px;
    height: 30px;
    // border-right: 1px solid white;
    transform: scale(0.6);
    margin: -10px;
  }
}

p.click-view {
  padding: 0.5em 0.3em;
  border-top: 1px solid #F7F7F7;
  margin-top: 5px;
  color: #5fbcf4;
  font-weight: bolder;

  i {
    float: right;
    margin-right: 10px;
    color: #6FCFF6;
  }
}

.right{

  &.timeline-block {
    float: right;
    margin-right: 65px;
  }

  h2 {
    float: right;
  }

  .timeline-content {
    float: right;

    .mark {
      margin-left: 20px;
    }

    .timeline-content-body {
      float: right;
      background-color: #01AAEE;
      color: #666666;
      // border-top-right-radius: 0;
    }


    p {
      // color:white;
    }
  }

  .timeline-content:not(.no-arrow)::before {
    content: '';
    position: absolute;
    top: 32px;
    right: -6px;
    z-index: 10;
    background-image:  url(@rightarraowurl);
    background-repeat: no-repeat;
    width: 20px;
    height: 30px;
    // border-right: 1px solid white;
    transform: scale(0.6);
    margin: -10px;
  }
}

i.pull-right{
  font-size: 12px;
  color:#a7a7a7;
}

.default-user {
  font-size: 12px;
  width: 100%;
  height: 100%;
  line-height: 40px;
  color: white;
  background: #35adff;
  border-radius: 100%;
  text-align: center;
  padding: 2px;
}
